package com.smbms.commons.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StocksMapper {

    @Update("update smbms_stock set num=num-#{num} where bid=#{bid}")
    void updateStock(@Param("bid") int bid,@Param("num") int num);
}
